package com.ruoyi.building.domain;

import com.ruoyi.community.domain.Community;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 楼栋对象 t_building
 * 
 * @author ruoyi
 * @date 2023-04-07
 */
public class Building extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 小区 */
    @Excel(name = "小区")
    private Long communityId;

    /** 楼栋名 */
    @Excel(name = "楼栋id")
    private String name;


    /** 核酸状态 */
    @Excel(name = "核酸状态")
    private Long nucleinStatus;

    private Community community;



    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCommunityId(Long communityId)
    {
        this.communityId = communityId;
    }

    public Long getCommunityId()
    {
        return communityId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNucleinStatus(Long nucleinStatus)
    {
        this.nucleinStatus = nucleinStatus;
    }

    public Long getNucleinStatus()
    {
        return nucleinStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("name", getName())
            .append("nucleinStatus", getNucleinStatus())
            .toString();
    }
}
